package manage.model;

import m.common.model.FieldMeta;
import m.common.model.Model;
import m.common.model.TableMeta;
import m.common.model.UserModel;
import m.common.model.type.FieldType;
@TableMeta(name="v_action_log_user",description="日志用户",isView=true,
    viewSql = "select al.oid,al.realname,al.username,'管理员' user_type from os_admin_login al")
public class ActionLogUser extends Model implements UserModel {
    @FieldMeta(name="realname",type= FieldType.STRING,length=20,notnull=true,description="真实姓名")
    private String realname;
    @FieldMeta(name="username",type=FieldType.STRING,length=20,notnull=true,description="登录帐号")
    private String username;
    @FieldMeta(name="user_type",type=FieldType.STRING,length=20,notnull=true,description="账号类型")
    private String userType;

    @Override
    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    @Override
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }
}
